package com.dong.ioc.javabased.lookup;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * description
 *
 * @author Administrator 2021/09/06 14:01
 */
public class LookupTest {

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        Person person = context.getBean(Person.class);
        System.out.println(person);

        PersonManager personManager = context.getBean(PersonManager.class);
        System.out.println(personManager.createdPerson());
    }

}
